package test.nio;

import java.io.File;
import java.io.IOException;

import org.apache.commons.io.FileUtils;

public class App {
	
	public static void main(String[] args) throws IOException {
		File file = new File("F:/");
		System.out.println(new String(FileUtils.readFileToByteArray(new File("F:/demo.txt"))));
		System.out.println(file.isDirectory());
		File[] files = file.listFiles();
		for(File f:files) {
			System.out.println(f.getName());
		}
	}

}
